package Lab4JavaConcurrency;

public class MatrixGenerator{
	int m; // 行数
	int n;  // 列数
	public MatrixGenerator(int m, int n) {
		this.m = m;
		this.n = n; 
	}
	public double[][] getMatrix(int m, int n){
		double[][] matrix = new double[m][n];
		for(int i = 0; i < matrix.length; i++) {
			for(int j = 0; j < matrix[i].length; j++) {
				// 生成随机数
				matrix[i][j] = Math.random()*100;
				System.out.print(matrix[i][j] + " ");
			}
			System.out.println();
		}
		return matrix;
	}
}